package com.hrt.common.systemmanager.systemsetting.register;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

import java.util.Date;

@SuppressWarnings("unchecked")
public class CBcRegisterInfoModel extends BaseModel {

    private static final long serialVersionUID = 1L;


    public static String tableName = "C_BC_REGISTER_INFO";


    public static IField id = new Field(CBcRegisterInfoModel.class,"ID",FieldType.String,true,true,false);

    public static IField uerId = new Field(CBcRegisterInfoModel.class,"UER_ID",FieldType.String,false,true,false);

    public static IField status = new Field(CBcRegisterInfoModel.class,"STATUS",FieldType.String,false,true,false);

    public static IField userName = new Field(CBcRegisterInfoModel.class,"USER_NAME",FieldType.String,false,true,false);

    public static IField createTime = new Field(CBcRegisterInfoModel.class,"CREATE_TIME",FieldType.DateTime,false,true,false);

    public static IField ip = new Field(CBcRegisterInfoModel.class,"IP",FieldType.String,false,true,false);

    public void setId(String value){
        setFieldValue(CBcRegisterInfoModel.id.getFieldName(), value);
    }

    public String getId(){
        Object value = getFieldValue(CBcRegisterInfoModel.id.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setIp(String value){
        setFieldValue(CBcRegisterInfoModel.ip.getFieldName(), value);
    }

    public String getIp(){
        Object value = getFieldValue(CBcRegisterInfoModel.ip.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setUerId(String value){
        setFieldValue(CBcRegisterInfoModel.uerId.getFieldName(), value);
    }

    public String getUerId(){
        Object value = getFieldValue(CBcRegisterInfoModel.uerId.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setStatus(String value){
        setFieldValue(CBcRegisterInfoModel.status.getFieldName(), value);
    }

    public String getStatus(){
        Object value = getFieldValue(CBcRegisterInfoModel.status.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setUserName(String value){
        setFieldValue(CBcRegisterInfoModel.userName.getFieldName(), value);
    }

    public String getUserName(){
        Object value = getFieldValue(CBcRegisterInfoModel.userName.getFieldName());
        return getValueConver().converToString(value);
    }

    public void setCreateTime(Date value){
        setFieldValue(CBcRegisterInfoModel.createTime.getFieldName(), value);
    }

    public Date getCreateTime(){
        Object value = getFieldValue(CBcRegisterInfoModel.createTime.getFieldName());
        return getValueConver().converToDate(value);
    }


    public String getTableName() {
        return tableName;
    }


    public boolean isNeedCache() {
        return false;
    }

}